package com.java.dao;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashMap;

import com.java.util.DaoUtils;

public class Com0301lp02Dao extends CommonDao{
	
	public ArrayList execute(HashMap requestMap,Connection con) {

		ArrayList list = new ArrayList();
		try {

			String queryStr = "call com_com0301p02List(?,?,?,?,?)";

			String param[] = new String[5];
			param[0] = (String) requestMap.get("start_dt");
			param[1] = (String) requestMap.get("close_dt");
			param[2] = (String) requestMap.get("ent_id");
			param[3] = (String) requestMap.get("connGroup");
			param[4] = (String) requestMap.get("user_id");
			
			list = DaoUtils.select(con, queryStr, param);

		} catch (Exception ee) {
			ee.printStackTrace();
		}finally {
			try{
				if (con!=null) con.setAutoCommit(true);
				if (con!=null) con.close();
			}catch(Exception ee){}
		}
		return list;
	}
}
